//
//  YKLSUser.h
//  YKLSLiveShow
//
//  Created by zyj on 16/6/7.
//  Copyright © 2016年 leon. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YKLGUser : NSObject

@property (nonatomic, copy, readonly) NSString *name;
@property (nonatomic, copy, readonly) NSString *token;
@property (nonatomic, copy, readonly) NSString *avatarUrl;
@property (nonatomic, copy, readonly) NSString *email;
+ (instancetype)shareInstance;
- (void)setUserName:(NSString *)name
          avatarUrl:(NSString *)avatarUrl
              token:(NSString *)token
              email:(NSString *)email;
- (void)saveCookies:(NSArray<NSHTTPCookie*>*)cookieArr;       //save Cookies after login
- (BOOL)isLogin;
- (void)logOut;
@end
